//
//  PublicViewController.m
//  分享demo
//
//  Created by pc-chtypd056 on 2018/8/6.
//  Copyright © 2018年 CTL. All rights reserved.
//

#import "PublicViewController.h"

@interface PublicViewController ()

@end

@implementation PublicViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSDictionary *dict = @{@"name":@"ABC",@"age":@22};
    [dict.rac_sequence.signal subscribeNext:^(id  _Nullable x) {
        RACTupleUnpack(NSString *key,NSString *value) = x;
        CTLog(@"key:%@==value:%@",key,value);
    }];
    
}

- (void)setTitleStr:(NSString *)titleStr{
    self.title = titleStr;
}

- (void)setIndexPath:(NSIndexPath *)indexPath{
    if (indexPath.row == 1) {
        TableViewDataView *tableVC = [[TableViewDataView alloc]initWithFrame:CGRectMake(0, 0, ScreenWIDTH, ScreenHEIGH)];
        tableVC.backgroundColor = [UIColor whiteColor];
        [self.view addSubview:tableVC];
    }else if (indexPath.row == 2){
        GraduatedScaleView *scaleView = [[GraduatedScaleView alloc]initWithFrame:self.view.bounds];
        scaleView.backgroundColor = [UIColor whiteColor];
        [self.view addSubview:scaleView];
    }else if (indexPath.row == 3){
        LikeView *like = [[LikeView alloc]initWithFrame:self.view.bounds];
        like.backgroundColor = [UIColor whiteColor];
        [self.view addSubview:like];
    }else if (indexPath.row == 4){
        BethelPathView *pathView = [[BethelPathView alloc]initWithFrame:self.view.bounds];
        pathView.backgroundColor = [UIColor whiteColor];
        [self.view addSubview:pathView];
    }else if (indexPath.row == 5){
        QQOnekey *oneKey = [[QQOnekey alloc]initWithFrame:self.view.bounds withCurrentVC:self];
        oneKey.backgroundColor = [UIColor whiteColor];
        [self.view addSubview:oneKey];
    }else if (indexPath.row == 6){
        FaceIDorTouchID *ftView = [[FaceIDorTouchID alloc]initWithFrame:self.view.bounds];
        ftView.backgroundColor = [UIColor whiteColor];
        [self.view addSubview:ftView];
    }else if (indexPath.row == 7){
        HealthDataView *healthView = [[HealthDataView alloc]initWithFrame:self.view.bounds];
        healthView.backgroundColor = [UIColor whiteColor];
        [self.view addSubview:healthView];
    }else if (indexPath.row == 8){
        ScanView *canView = [[ScanView alloc]initWithFrame:self.view.bounds];
        canView.backgroundColor = [UIColor whiteColor];
        [self.view addSubview:canView];
    }else if (indexPath.row == 9){
        ScreenshotsView *shotsView = [[ScreenshotsView alloc]initWithFrame:self.view.bounds];
        shotsView.backgroundColor = [UIColor whiteColor];
        [self.view addSubview:shotsView];
    }else if (indexPath.row == 10){
        CopyAndPasteView *pasteView = [[CopyAndPasteView alloc]initWithFrame:self.view.bounds];
        pasteView.backgroundColor = [UIColor whiteColor];
        [self.view addSubview:pasteView];
    }
}

@end
